/**
 * author      : dormi330
 * date        : 2018/6/27
 * project     : mybatis
 * description : TODO
 */

package com.deep.trade.order;

import com.deep.trade.BaseDto;

public class InDtoAuditOrder extends BaseDto {

    private String tenantCode;     // 租户
    private String auditorId;      // 谁进行的审计
    private String tradeOrderId;   // 被审计的订单号
    private boolean approve;       // 审计通过与否 true=通过, false=否
    private String rejectReason;   // 可选, 审计不通过时
    private String token;

    public InDtoAuditOrder(String tenantCode, String auditorId, String tradeOrderId, boolean approve, String rejectReason) {
        this.tenantCode = tenantCode;
        this.auditorId = auditorId;
        this.tradeOrderId = tradeOrderId;
        this.approve = approve;
        this.rejectReason = rejectReason;
    }

    public InDtoAuditOrder() {
    }

    //  === setter / getter ===

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public void setAuditorId(String auditorId) {
        this.auditorId = auditorId;
    }

    public void setTradeOrderId(String tradeOrderId) {
        this.tradeOrderId = tradeOrderId;
    }

    public void setApprove(boolean approve) {
        this.approve = approve;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public String getAuditorId() {
        return auditorId;
    }

    public String getTradeOrderId() {
        return tradeOrderId;
    }

    public boolean isApprove() {
        return approve;
    }

    public String getRejectReason() {
        return rejectReason;
    }
}
